package com.iwjw.ibatis.generate.model;

import lombok.Data;

import java.util.List;

/**
 * 侵入代码生成规则
 *
 * @author: huangweiwei
 * @email: ihuangweiwei@163.com
 * @created:2016/10/25
 */
@Data
public class CustomizeTableInfo {
    List<ColumnOverrid> columnOverridList;
    private String tableProperty;
    private String tableName;

    public CustomizeTableInfo(String tableName) {
        this.tableName = tableName;
    }

    /**
     * <columnOverride column="memo" javaType="java.lang.String" jdbcType="VARCHAR"/>
     */
    @Data
    public static class ColumnOverrid {
        private String name;
        private String property;
        private Class javaType;
        private String jdbcType;
        private Class typeHandler;

    }
}
